import _ from 'lodash';
import '@/style/css/index.css';
import '@/style/scss/index.scss'
import qr from '@/imgs/qr.png';
import dmx from '@/imgs/dmx.jpg';
import data from '@/file/data.xml';
console.log('环境变量：', process.env.NODE_ENV)
function component() {
    var element = document.createElement('div');

    // Lodash（目前通过一个 script 脚本引入）对于执行这一行是必需的
    element.innerHTML = _.join(['Hello', 'webpack'], ' ');
    element.classList.add('hello');

    var myIcon = new Image();
    myIcon.src = qr;
    element.appendChild(myIcon);
    var myIcon2 = new Image();
    myIcon2.src = dmx;
    element.appendChild(myIcon2);

    console.log('he',data)

    return element;
}

document.body.appendChild(component());